package com.thoughtworks.bytecode2class.instruction;

import java.util.List;

public class DoubleByteInstruction extends Instruction {

    DoubleByteInstruction(OpCode opCode, List<Byte> bytes, int offset) {
        super(opCode, bytes, offset);
    }

    @Override
    public String getParameter() {
        int byteValue = (bytes.get(offset + 1) << 8 | bytes.get(offset + 2));
        return String.valueOf(offset + byteValue);
    }
}
